package p.ithorns.example.feign;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import p.ithorns.framework.feign.enhance.FeignController;

/**
 * T1Ctrl
 *
 * 测试@RestController注解继承
 * 实现类必须要使用@Component注入到Spring容器中才能使用
 *
 * @author HtL
 * @date 2024/8/30 15:47
 * @since 1.0.0
 */
@Component
public class T1Ctrl implements FeignController {

    @GetMapping("/test")
    public String t1() {
        return "Test 1";
    }

}